package com.atguigu.yygh.hosp.service;

import com.atguigu.yygh.model.order.OrderInfo;
import com.atguigu.yygh.vo.order.OrderQueryVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 订单表 服务类
 * </p>
 *
 * @author Fxq
 * @since 2022-04-07
 */
public interface IOrderInfoService extends IService<OrderInfo> {

    /**
     * 创建订单
     */
    Long saveOrder(String scheduleId, Long patientId);

    OrderInfo getOrderInfo(String orderId);

    IPage<OrderInfo> selectPage(Page<OrderInfo> pageParam, OrderQueryVo orderQueryVo);

    boolean cancelOrder(Long orderId);
}
